<?php
session_start();
set_include_path(get_include_path() . PATH_SEPARATOR . '.' . PATH_SEPARATOR . './libs/');
require_once('./libs/classes/articleModel.class.php');
require_once('./libs/Smarty/Smarty.class.php');
$ls = new Smarty();
$doit = new Articleop();
$arow = $doit->modA($_GET['id']);
$dbLink=dbconection::makealink();
$userinfomation = $dbLink->fetchRow("select * from user where user_id='{$arow['article_uid']}'");
$zuozheinfo = array('name'=>$userinfomation['user_name'],
									'age'=>$userinfomation['user_age'],
									'info'=>$userinfomation['user_info']);
$ls->assign('info',$zuozheinfo);
$ls->assign('arow',$arow);
$ls->display('mod.html');
?>